home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7392 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 70 |c.Subjec|t: Re: p|
|00000080| 6f 69 6e 74 65 72 73 0a | 44 61 74 65 3a 20 53 75 |ointers.|Date: Su|
|00000090| 6e 2c 20 32 35 20 46 65 | 62 20 31 39 39 36 20 32 |n, 25 Fe|b 1996 2|
|000000a0| 31 3a 33 32 3a 32 32 20 | 2d 30 36 30 30 0a 4f 72 |1:32:22 |-0600.Or|
|000000b0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 55 6e 69 76 |ganizati|on: Univ|
|000000c0| 65 72 73 69 74 79 20 6f | 66 20 49 6f 77 61 2c 20 |ersity o|f Iowa, |
|000000d0| 49 6f 77 61 20 43 69 74 | 79 2c 20 49 41 2c 20 55 |Iowa Cit|y, IA, U|
|000000e0| 53 41 0a 44 69 73 74 72 | 69 62 75 74 69 6f 6e 3a |SA.Distr|ibution:|
|000000f0| 20 77 6f 72 6c 64 0a 4d | 65 73 73 61 67 65 2d 49 | world.M|essage-I|
|00000100| 44 3a 20 3c 50 69 6e 65 | 2e 41 33 32 2e 33 2e 39 |D: <Pine|.A32.3.9|
|00000110| 31 2e 39 36 30 32 32 35 | 32 31 32 35 32 38 2e 31 |1.960225|212528.1|
|00000120| 33 35 36 39 36 44 2d 31 | 30 30 30 30 30 40 72 65 |35696D-1|00000@re|
|00000130| 64 2e 77 65 65 67 2e 75 | 69 6f 77 61 2e 65 64 75 |d.weeg.u|iowa.edu|
|00000140| 3e 0a 52 65 66 65 72 65 | 6e 63 65 73 3a 20 3c 34 |>.Refere|nces: <4|
|00000150| 67 71 68 38 67 24 62 6f | 34 40 6e 65 77 73 2e 62 |gqh8g$bo|4@news.b|
|00000160| 75 2e 65 64 75 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |u.edu>.N|NTP-Post|
|00000170| 69 6e 67 2d 48 6f 73 74 | 3a 20 72 65 64 2e 77 65 |ing-Host|: red.we|
|00000180| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 4d 69 6d |eg.uiowa|.edu.Mim|
|00000190| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|000001a0| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|000001b0| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|000001c0| 3d 55 53 2d 41 53 43 49 | 49 0a 58 2d 53 65 6e 64 |=US-ASCI|I.X-Send|
|000001d0| 65 72 3a 20 72 6f 62 69 | 6e 73 6f 6e 40 72 65 64 |er: robi|nson@red|
|000001e0| 2e 77 65 65 67 2e 75 69 | 6f 77 61 2e 65 64 75 0a |.weeg.ui|owa.edu.|
|000001f0| 49 6e 2d 52 65 70 6c 79 | 2d 54 6f 3a 20 3c 34 67 |In-Reply|-To: <4g|
|00000200| 71 68 38 67 24 62 6f 34 | 40 6e 65 77 73 2e 62 75 |qh8g$bo4|@news.bu|
|00000210| 2e 65 64 75 3e 20 0a 0a | 4f 6e 20 32 35 20 46 65 |.edu> ..|On 25 Fe|
|00000220| 62 20 31 39 39 36 2c 20 | 77 61 69 20 79 69 70 20 |b 1996, |wai yip |
|00000230| 77 72 6f 74 65 3a 0a 0a | 3e 20 63 61 6e 20 73 6f |wrote:..|> can so|
|00000240| 6d 65 6f 6e 65 20 77 68 | 6f 20 6b 6e 6f 77 73 20 |meone wh|o knows |
|00000250| 61 20 6c 6f 74 20 61 62 | 6f 75 74 20 70 6f 69 6e |a lot ab|out poin|
|00000260| 74 65 72 73 20 68 65 6c | 70 20 6d 65 20 77 69 74 |ters hel|p me wit|
|00000270| 68 20 74 68 69 73 0a 3e | 20 0a 3e 20 69 6e 74 20 |h this.>| .> int |
|00000280| 69 3d 33 2c 2a 70 3b 0a | 3e 20 0a 3e 20 77 69 74 |i=3,*p;.|> .> wit|
|00000290| 68 20 74 68 65 20 61 62 | 6f 76 65 20 64 65 63 6c |h the ab|ove decl|
|000002a0| 61 72 61 74 69 6f 6e 2c | 20 77 68 61 74 20 77 6f |aration,| what wo|
|000002b0| 75 6c 64 20 74 68 65 20 | 62 6f 74 74 6f 6d 20 6c |uld the |bottom l|
|000002c0| 69 6e 65 73 20 64 6f 3f | 0a 3e 20 2a 70 3d 26 69 |ines do?|.> *p=&i|
|000002d0| 3b 0a 0a 20 20 53 65 74 | 20 74 68 65 20 76 61 6c |;.. Set| the val|
|000002e0| 75 65 20 70 20 70 6f 69 | 6e 74 73 20 74 6f 20 74 |ue p poi|nts to t|
|000002f0| 6f 20 69 27 73 20 61 64 | 64 72 65 73 73 2c 20 77 |o i's ad|dress, w|
|00000300| 68 69 63 68 20 77 69 6c | 6c 20 72 65 73 75 6c 74 |hich wil|l result|
|00000310| 20 69 6e 20 61 6e 20 0a | 69 6d 70 6c 65 6d 65 6e | in an .|implemen|
|00000320| 74 61 74 69 6f 6e 2d 64 | 65 66 69 6e 65 64 20 63 |tation-d|efined c|
|00000330| 6f 6e 76 65 72 73 69 6f | 6e 20 66 72 6f 6d 20 70 |onversio|n from p|
|00000340| 6f 69 6e 74 65 72 20 76 | 61 6c 75 65 20 74 6f 20 |ointer v|alue to |
|00000350| 69 6e 74 65 67 65 72 2e | 20 20 54 68 69 73 20 69 |integer.| This i|
|00000360| 73 20 0a 73 65 6c 64 6f | 6d 20 64 65 73 69 72 65 |s .seldo|m desire|
|00000370| 64 2e 20 20 49 66 20 74 | 68 69 73 20 61 73 73 69 |d. If t|his assi|
|00000380| 67 6e 6d 65 6e 74 20 69 | 6d 6d 65 64 69 61 74 65 |gnment i|mmediate|
|00000390| 6c 79 20 66 6f 6c 6c 6f | 77 73 20 74 68 65 20 61 |ly follo|ws the a|
|000003a0| 62 6f 76 65 20 0a 64 65 | 63 6c 61 72 61 74 69 6f |bove .de|claratio|
|000003b0| 6e 20 28 73 6f 20 74 68 | 61 74 20 70 20 64 6f 65 |n (so th|at p doe|
|000003c0| 73 6e 27 74 20 70 6f 69 | 6e 74 20 74 6f 20 61 6e |sn't poi|nt to an|
|000003d0| 79 20 6c 65 67 61 6c 20 | 6c 6f 63 61 74 69 6f 6e |y legal |location|
|000003e0| 29 20 74 68 65 6e 20 74 | 68 65 20 0a 72 65 73 75 |) then t|he .resu|
|000003f0| 6c 74 73 20 6f 66 20 74 | 68 69 73 20 73 74 61 74 |lts of t|his stat|
|00000400| 65 6d 65 6e 74 20 61 72 | 65 20 75 6e 64 65 66 69 |ement ar|e undefi|
|00000410| 6e 65 64 2e 20 20 54 68 | 69 73 20 69 73 20 6e 65 |ned. Th|is is ne|
|00000420| 76 65 72 20 64 65 73 69 | 72 65 64 2e 0a 0a 3e 20 |ver desi|red...> |
|00000430| 70 3d 69 3b 0a 0a 20 20 | 53 65 74 73 20 70 20 74 |p=i;.. |Sets p t|
|00000440| 6f 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 69 |o the va|lue of i|
|00000450| 2e 20 20 54 68 69 73 20 | 66 6f 72 63 65 73 20 63 |. This |forces c|
|00000460| 6f 6e 76 65 72 73 69 6f | 6e 20 6f 66 20 61 6e 20 |onversio|n of an |
|00000470| 69 6e 74 20 28 33 29 20 | 74 6f 20 61 20 0a 70 6f |int (3) |to a .po|
|00000480| 69 6e 74 65 72 20 76 61 | 6c 75 65 2c 20 74 68 65 |inter va|lue, the|
|00000490| 20 72 65 73 75 6c 74 73 | 20 6f 66 20 77 68 69 63 | results| of whic|
|000004a0| 68 20 61 72 65 20 61 67 | 61 69 6e 20 69 6d 70 6c |h are ag|ain impl|
|000004b0| 65 6d 65 6e 74 61 74 69 | 6f 6e 20 64 65 66 69 6e |ementati|on defin|
|000004c0| 65 64 2e 20 20 0a 54 68 | 69 73 20 74 6f 6f 20 69 |ed. .Th|is too i|
|000004d0| 73 20 73 65 6c 64 6f 6d | 20 64 65 73 69 72 65 64 |s seldom| desired|
|000004e0| 2e 0a 0a 3e 20 2a 70 3d | 69 3b 0a 0a 20 20 54 68 |...> *p=|i;.. Th|
|000004f0| 69 73 20 73 65 74 73 20 | 74 68 65 20 76 61 6c 75 |is sets |the valu|
|00000500| 65 20 70 20 70 6f 69 6e | 74 73 20 74 6f 20 74 6f |e p poin|ts to to|
|00000510| 20 69 2e 20 20 49 66 20 | 70 20 64 6f 65 73 20 6e | i. If |p does n|
|00000520| 6f 74 20 70 6f 69 6e 74 | 20 74 6f 20 61 20 6c 65 |ot point| to a le|
|00000530| 67 61 6c 20 0a 6c 6f 63 | 61 74 69 6f 6e 20 28 65 |gal .loc|ation (e|
|00000540| 67 20 61 6e 20 69 6e 74 | 65 67 65 72 20 76 61 72 |g an int|eger var|
|00000550| 69 61 62 6c 65 2c 20 6f | 72 20 6d 61 6c 6c 6f 63 |iable, o|r malloc|
|00000560| 28 29 27 64 20 73 70 61 | 63 65 29 20 74 68 65 6e |()'d spa|ce) then|
|00000570| 20 74 68 65 20 72 65 73 | 75 6c 74 73 20 0a 6f 66 | the res|ults .of|
|00000580| 20 74 68 69 73 20 73 74 | 61 74 65 6d 65 6e 74 20 | this st|atement |
|00000590| 61 72 65 20 75 6e 64 65 | 66 69 6e 65 64 2e 0a 0a |are unde|fined...|
|000005a0| 3e 20 70 3d 26 69 3b 0a | 0a 20 20 54 68 69 73 20 |> p=&i;.|. This |
|000005b0| 73 65 74 73 20 70 20 74 | 6f 20 69 27 73 20 61 64 |sets p t|o i's ad|
|000005c0| 64 72 65 73 73 3b 20 69 | 65 2e 20 70 20 22 70 6f |dress; i|e. p "po|
|000005d0| 69 6e 74 73 20 74 6f 22 | 20 69 2e 20 20 54 68 69 |ints to"| i. Thi|
|000005e0| 73 20 6d 65 61 6e 73 20 | 74 68 61 74 20 74 68 65 |s means |that the|
|000005f0| 20 0a 66 6f 6c 6c 6f 77 | 69 6e 67 20 73 74 61 74 | .follow|ing stat|
|00000600| 65 6d 65 6e 74 73 20 77 | 69 6c 6c 20 70 72 69 6e |ements w|ill prin|
|00000610| 74 20 74 68 65 20 76 61 | 6c 75 65 20 35 3a 0a 0a |t the va|lue 5:..|
|00000620| 2a 70 20 3d 20 35 3b 20 | 2f 2a 20 73 65 74 20 74 |*p = 5; |/* set t|
|00000630| 68 65 20 76 61 6c 75 65 | 20 70 20 70 6f 69 6e 74 |he value| p point|
|00000640| 73 20 74 6f 20 28 69 27 | 73 20 76 61 6c 75 65 29 |s to (i'|s value)|
|00000650| 20 74 6f 20 35 20 2a 2f | 0a 70 72 69 6e 74 66 28 | to 5 */|.printf(|
|00000660| 22 25 64 5c 6e 22 2c 20 | 69 29 3b 0a 0a 2f 2a 2a |"%d\n", |i);../**|
|00000670| 4a 61 6d 65 73 20 52 6f | 62 69 6e 73 6f 6e 2a 2a |James Ro|binson**|
|00000680| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000690| 2a 2a 2a 2a 2a 20 20 20 | 20 20 20 20 20 20 20 20 |***** | |
|000006a0| 20 0a 20 20 22 41 6e 20 | 69 6d 70 6f 72 74 61 6e | . "An |importan|
|000006b0| 74 20 67 6f 61 6c 20 6f | 66 20 61 6c 6d 6f 73 74 |t goal o|f almost|
|000006c0| 20 65 76 65 72 79 20 67 | 72 61 70 68 69 63 73 20 | every g|raphics |
|000006d0| 70 72 6f 67 72 61 6d 20 | 69 73 20 74 6f 20 64 72 |program |is to dr|
|000006e0| 61 77 20 70 69 63 74 75 | 72 65 73 20 6f 6e 0a 20 |aw pictu|res on. |
|000006f0| 74 68 65 20 73 63 72 65 | 65 6e 2e 22 20 20 20 20 |the scre|en." |
|00000700| 2d 2d 20 4e 65 69 64 65 | 72 2c 20 44 61 76 69 73 |-- Neide|r, Davis|
|00000710| 20 26 20 57 6f 6f 2c 20 | 5f 4f 70 65 6e 47 4c 5f | & Woo, |_OpenGL_|
|00000720| 50 72 6f 67 72 61 6d 6d | 69 6e 67 5f 47 75 69 64 |Programm|ing_Guid|
|00000730| 65 5f 2c 20 43 68 61 70 | 74 65 72 20 31 30 0a 20 |e_, Chap|ter 10. |
|00000740| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000750| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000760| 20 20 20 20 20 20 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a | **|********|
|00000770| 2a 2a 2a 6a 61 6d 65 73 | 2d 72 6f 62 69 6e 73 6f |***james|-robinso|
|00000780| 6e 40 75 69 6f 77 61 2e | 65 64 75 2a 2a 2f 0a |n@uiowa.|edu**/. |
+--------+-------------------------+-------------------------+--------+--------+